package com.gyp.feign;

import com.gyp.dto.rpc.TokenRequestDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
   * @Description: TOKEN获取
   * @author xia
   * @date 2022/12/28
   */
@FeignClient(name = "tokenService",url = "https://iam.myhuaweicloud.com/v3")
public interface TokenFeignClient {

    /**
     * @Description:
     * @author xia
     * @param
     * @Date 2021/1/24
     */
    @PostMapping("/auth/tokens?nocatalog=true")
    feign.Response getToken(@RequestBody TokenRequestDTO param);

}
